﻿using Autofac;
using Catastrophe.BasePC.UI.Extend;
using Catastrophe.BasePC.UI.SystemIni;
using Catastrophe.BasePC.UI.UI;
using Catastrophe.Initialize;
using CatastropheDemo.UI;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CatastropheDemo.SystemIni
{
    public class IOCIni : IContainerIni
    {
        public bool IsRun { get; set; } = true;

        void IContainerIni.ContainerLoad(ContainerBuilder container)
        {
            //注入初始化相关
            container.RegisterSystemIni<FileConfigIni, IFileIni>();
            container.RegisterSystemIni<DbIni, IDbIni>();
           // container.RegisterSystemIni<CommIni, ICommIni>();
            //container.RegisterSystemIni<CommTask, ICommTaskIni>();
           // container.RegisterSystemIni<ControlTask, IControlTaskIni>();
            container.RegisterSystemIni<AuthorizeIni, IAuthorizeIni>();
            container.RegisterSystemIni<CatastropheServer, IServiceIni>();

            container.RegisterType<UcMyStyle>().As<IFrameFileConfig>();
        }
    }
}
